home *** CD-ROM | disk | FTP | other *** search
- Path: thor.tu.hac.com!collins
- From: collins@thor.tu.hac.com (Ron Collins)
- Newsgroups: comp.lang.c++,comp.lang.c
- Subject: Re: getch() equivalency help ...
- Followup-To: comp.lang.c++,comp.lang.c
- Date: 22 Jan 1996 22:00:49 GMT
- Organization: Advanced Depot Systems
- Message-ID: <4e11eh$l96@hacgate2.hac.com>
- References: <4dpe6p$e4j@twin.wasatch.com>
- NNTP-Posting-Host: thor.tu.hac.com
-
- Richard Demanowski (rdemanow@wasatch.com) wrote:
- : I am looking for help with the following question/problem:
-
- : I want to have a function that does the same thing as getch() from
- : conio.h, but without needing to include conio.h.
- [snip]
-
- There is no portable way to do this. There are portable ways to read an
- entire line [fgets(stdin)], but if you need just one character, then
- you'll have to write OS specific code for each machine type.
-
- Probably the easiest thing to do would be to put curses on all machines
- (it exists for almost any OS you can think of, and can generally be found
- for free).
-
- -- Collins --
-